Basic Serialization
Public class MyBean implements java.io.Serializable
{
   SomeOtherBean delegate;
   private Frame gui;
   transient Object anotherField:
}
MyBean can be saved and restored
like this:
ObjectOutputStream ost = new ObjectOutputStream(a);
out.writeObject(new MyBean());

ObjectInputStream ist = new ObjectInputStream(b);
MyBean x = (MyBean)ist.readObject();

Return to Tracks